<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path=request.getContextPath();
%>    

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<link href="/resources/css/bootstrap-4.3.1/css/bootstrap.css" rel="stylesheet">
	<script type="text/javascript" src="/resources/js/jquery-3.2.1/jquery.js"></script>
	<script type="text/javascript" src="/resources/js/jqueryvalidate/jquery.validate.js"></script>
	<script type="text/javascript" src="/resources/js/jqueryvalidate/localization/messages_zh.js"></script>
	<script type="text/javascript" src="/resources/css/bootstrap-4.3.1/js/bootstrap.js"></script>

<style type="text/css">
	span{
		color:red;
	}



</style>
</head>
<body>
	
<!-- 	new Applicant(id, name, gender, birthday, college, major, edu, degree, created, strScore, avgScore) -->
	<f:form modelAttribute="applicant" action="add" method="post">
	  
	  <div class="form-group">
	    <label for="name">姓名</label>
	    	<f:input path="name" class="form-control" />
	    	<f:errors path="name"></f:errors>
	  </div>
	  
	    <label for="exampleInputPassword1">姓别</label>
	  <div class="form-check">
		  <input class="form-check-input" type="radio" name="gender"  value="男" >
		  <label class="form-check-label" for="exampleRadios1">
		   	 男
		  </label>
		  
		</div>
		<div class="form-check">
			<input class="form-check-input" type="radio" name="gender"  value="女" >
			  <label class="form-check-label" for="exampleRadios1">
			   	 女
			  </label>
		</div>
		<f:errors path="gender"></f:errors>
	  <div class="form-group">
	    <label for="birthday">出生日期</label>
	    <f:input path="birthday" class="form-control" type = "date"/>
	  </div>
	  <div class="form-group">
	    <label for="college">毕业大学</label>
	    <f:input path="college" class="form-control" />
	    <f:errors path="college"></f:errors>
	  </div>
	  <div class="form-group">
	    <label for="major">所学专业</label>
	    <f:input path="major" class="form-control" />
	    <f:errors path="major"></f:errors>
	  </div>
		<label for="edu">学历</label>
		<f:select path="edu" class="form-control">
		  <option value = "1">大专</option>
		  <option value = "2">本科</option>
		  <option value = "3">研究生</option>
		</f:select>
		<f:errors path="edu"></f:errors>
		<label for="degree">学位</label>
		<f:select path="degree"  class="form-control">
		  <option value = "1">学士</option>
		  <option value = "2">硕士</option>
		  <option value = "3">博士</option>
		</f:select>
		<f:errors path="degree"></f:errors>
	  
	  
	  <input type = "submit" value = "添加" class="btn btn-primary" >
	  
	  
	</f:form>




</body>
</html>